﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ChiTietDonHang.aspx.cs" Inherits="TemplateH4.Customer.ChiTietDonHang"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<title>Trang Chi Tiết Đơn Hàng</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
    <!--Thêm vào phần khung và menu-->  
    <div class="extra-img"><img alt="extra-img" src="../images/MasterPage/extra-img.png" class="png"/></div>    
    <div id="nav">
        <ul>
            <li><a href="../Default.aspx">Home</a></li>
            <li><a href="QuanLyDonHang.aspx">Quản Lý Đơn Hàng</a></li>
        </ul>
    </div>
    <!-- content -->
    <div id="content">
        <div class="section">
            <!-- box begin -->
            <div class="box">
                <div class="left-top-corner png">
                    <div class="right-top-corner png">
                        <div class="border-top png">
                        </div>
                    </div>
                </div>
                <div class="border-left png">
                    <div class="border-right png">
                        <div class="inside png">
                        
<!--Thêm vào phần khung và menu-->     
   
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="MaChiTietHoaDon" DataSourceID="LinqDataSource1" 
            ForeColor="#333333" GridLines="None" Width="720px" AllowPaging="True" 
            AllowSorting="True" Font-Size="15px">
            <RowStyle BackColor="#EFF3FB" Height="40px" HorizontalAlign="Center" 
                VerticalAlign="Middle" />
            <Columns>
                <asp:BoundField DataField="MaChiTietHoaDon" HeaderText="MaChiTietHoaDon" 
                    InsertVisible="False" ReadOnly="True" SortExpression="MaChiTietHoaDon" />
                <asp:BoundField DataField="MaHoaDon" HeaderText="MaHoaDon" 
                    SortExpression="MaHoaDon" />
                <asp:BoundField DataField="MaSanPham" HeaderText="MaSanPham" 
                    SortExpression="MaSanPham" />
                <asp:BoundField DataField="SoLuong" HeaderText="SoLuong" 
                    SortExpression="SoLuong" />
                <asp:BoundField DataField="TenSanPham" HeaderText="TenSanPham" 
                    SortExpression="TenSanPham" />
                <asp:BoundField DataField="DonGia" HeaderText="DonGia" 
                    SortExpression="DonGia" />
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" 
                Height="40px" HorizontalAlign="Center" VerticalAlign="Middle" />
            <EditRowStyle BackColor="#2461BF" Height="40px" HorizontalAlign="Center" 
                VerticalAlign="Middle" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
            ContextTypeName="LinQ_DTO.EFashionDBDataContext" 
            TableName="shop_chitiethoadons" Where="MaHoaDon == @MaHoaDon">
            <WhereParameters>
                <asp:QueryStringParameter DefaultValue="" Name="MaHoaDon" 
                    QueryStringField="MaHd" Type="Int32" />
            </WhereParameters>
        </asp:LinqDataSource>
    </div>
     <!-- Thêm phần khung -->                         
                        </div>
                    </div>
                </div>
                <div class="left-bot-corner png">
                    <div class="right-bot-corner png">
                        <div class="border-bot png">
                        </div>
                    </div>
                </div>
            </div>
            <!-- box end -->
</asp:Content>
